// $codepro.audit.disable
/**
 * Package domain
 */
package teamrocket.domain; // $codepro.audit.disable packagePrefixNamingConvention -->





import java.util.logging.Level;

import teamrocket.logging.TLogger;

/**
 * Represents a medical information object in the system
 * @author Stephen
 *
 * @version $Revision: 1.0 $
 */
public class MedicalInformation {
	
	/**
	 * Field pharmacy.
	 */
	private String pharmacy;
	
	/**
	 * Field insuranceCarrier.
	 */
	private String insuranceCarrier;
	
	/**
	 * Field allergies.
	 */
	private String[] allergies;
	
	/**
	 * Constructs a medical information object in memory
	 * @param pharmacy
	 * @param insuranceCarrier
	 * @param allergies
	 */
	public MedicalInformation(String pharmacy, String insuranceCarrier,
			String[] allergies) {
		this.pharmacy = pharmacy;
		this.insuranceCarrier = insuranceCarrier;
		this.allergies = allergies; // $codepro.audit.disable com.instantiations.assist.eclipse.arrayIsStoredWithoutCopying
		TLogger.getInstance().getLogger().log(Level.INFO,
				"Creating Medical Information.");
	}
	
	/**
	 * Method getPharmacy.
	 * @return String
	 */
	public String getPharmacy() {
		return pharmacy;
	}
	
	/**
	 * Method setPharmacy.
	 * @param pharmacy String
	 */
	public void setPharmacy(String pharmacy) {
		this.pharmacy = pharmacy;
	}
	
	/**
	 * Method getInsuranceCarrier.
	 * @return String
	 */
	public String getInsuranceCarrier() {
		return insuranceCarrier;
	}
	
	/**
	 * Method setInsuranceCarrier.
	 * @param insuranceCarrier String
	 */
	public void setInsuranceCarrier(String insuranceCarrier) {
		this.insuranceCarrier = insuranceCarrier;
	}
	
	/**
	 * Method getAllergies.
	 * @return String[]
	 */
	public String[] getAllergies() {
		return allergies;
	}
	
	/**
	 * Method setAllergies.
	 * @param allergies String[]
	 */
	public void setAllergies(String[] allergies) {
		this.allergies = allergies; // $codepro.audit.disable com.instantiations.assist.eclipse.arrayIsStoredWithoutCopying -->
	}
}
